package com.healthcloud.service;



import com.healthcloud.entity.*;
import com.healthcloud.utils.PageParam;

import java.util.List;

public interface QulitityService {
	List<QulitityEntity> search(QulitityEntity entity, PageParam pageParam);

    int count(QulitityEntity entity);

    List<CheckKBEntity> searchKB(CheckKBEntity entity, PageParam pageParam);

    int countKB(CheckKBEntity entity);

	CheckKBEntity searchKBById(int id);

    int updateKB(CheckKBEntity entity);

    int addKB(CheckKBEntity entity);

	List<TestDataEntity> record(TestDataEntity entity, PageParam pageParam);

	int countRecord(TestDataEntity entity);

	List<InstrumentInfo> searchDevice(InstrumentInfo entity, PageParam pageParam);

	InstrumentInfo searchDeviceById(int id);

	int countDevice(InstrumentInfo entity);

	int createDevice(InstrumentInfo entity);

	int updateDevice(InstrumentInfo entity);

	int deleteDevice(int id);

	int deletes(int[] ids);

	List<InstrumentInstallEntity> searchInstall(InstrumentInstallEntity entity, PageParam pageParam);

	InstrumentInstallEntity searchInstallById(int id);

	List<InstrumentInstallEntity> searchInstallByEntity(InstrumentInstallEntity entity);

	int countInstall(InstrumentInstallEntity entity);

	int createInstall(InstrumentInstallEntity entity);

	int updateInstall(InstrumentInstallEntity entity);

	int infoInstall(InstrumentInstallEntity entity);

	int deleteInstall(int id);

	int deletesInstall(int[] ids);

	int unbundlingInstall(List<Integer> ids);


	/*todo 该功能暂时不上线*/
/*	List<InstrumentRepairBean> repair(InstrumentRepairBean entity, PageParam pageParam);

	int countRepair(InstrumentRepairBean entity);

	InstrumentRepairBean searchRepairById(int id);

	int createRepair(InstrumentRepairBean entity);

	int updateRepair(InstrumentRepairBean entity);

	int updateRepairImg(InstrumentRepairBean entity);

	int deleteRepair(int id);*/

	List<VersionEntity> version(VersionEntity entity, PageParam pageParam);

	int countVersion(VersionEntity entity);

	VersionEntity searchVersionById(int id);

	int createVersion(VersionEntity entity);

	int updateVersion(VersionEntity entity);

	int updateVersionAddress(VersionEntity entity);

	int deleteVersion(int id);

	List<QualityEntity> quadata(QualityEntity entity, PageParam pageParam);

	int countQuadata(QualityEntity entity);

	List<BaseCodeEntity> searchVersionNum(BaseCodeEntity entity, PageParam pageParam);

	int countVersionNum(BaseCodeEntity entity);

	BaseCodeEntity searchVersionNumById(int id);

	int createVersionNum(BaseCodeEntity entity);

	int updateVersionNum(BaseCodeEntity entity);

	void deleteBatchByIds(Integer[] ids);

}